Skip to main content

VLP

Queries the VLP contract address for the specified token pair.

query Vlp($pair: PairInput) {
router {
vlp(pair: $pair) {
vlp
token_1
token_2
}
}
}

Example

curl --request POST \
    --header 'content-type: application/json' \
    --url 'https://api.euclidprotocol.com/graphql' \
    --data '{"query":"query Vlp($pair: PairInput) {\n  router {\n    vlp(pair: $pair) {\n      vlp\n      token_1\n      token_2\n    }\n  }\n}","variables":{"pair":{"token_1":"euclid","token_2":"nibi"}}}'

Open in Playground

NameTypeDescription
pairPairInput!The two tokens included in the token pair.

Return Fields

FieldTypeDescription
vlp_addressStringThe VLP contract address.
token_1StringThe token Id of the first token in the pool.
token_2StringThe token Id of the second token in the pool.